<!doctype html>
<html>
<head>
<title>管理员登录日志列表页面</title>
<?php $this->load->module('admin/index/page_header');?>
</head>
<body>

<div class="wrap J_check_wrap">
  <div class="nav">
      <ul>
          <li class="current"><a href="<?php echo site_url('admin/adminloginlog/index')?>">后台登录日志</a></li> 
          <li><a class="icon-remove-2 doDel" href="javascript:;" title="删除" data-uri="<?php echo site_url('admin/adminloginlog/ajax_remove');?>">删除一个月前的登陆日志</a></li>    
      </ul>
  </div>
  <form method="post" action="">
    <div class="table_list" id="content">
      <table width="100%">
		<colgroup>
			<col width="5%">
			<col width="10%">
			<col width="15%">
			<col width="10%">
			<col width="10%">
		</colgroup>
	    <thead>
	    <tr>
	        <td>ID</td>
	        <td>用户名</td>
	        <td>状态</td>
	        <td>操作时间</td>
	        <td>IP</td>
	    </tr>
	    </thead>
	    <?php if($list):?>
	    <tbody>
	        <?php foreach($list as $val):?>
	        <tr>
		        <td><?php echo $val['id'];?></td>
		        <td><?php echo $val['username'];?></td>
		        <td style="width:6%;"><?php if($val['status']==1):?>登录成功<?php else: ?><font color="#FF0000">登录失败</font><?php endif;?></td>			        
		        <td style="width:4%;"><?php echo $val['login_time'];?></td>
		        <td style="width:4%;"><?php echo $val['login_ip'];?></td>
	        </tr>
	        <?php endforeach;?>
	    </tbody>
	    <?php endif;?>
      </table>
    </div>
  </form>
  <div class="page_nav">
  <?php echo $this->mypageclass->show(2); ?>
  </div>
</div>
</body>
</html>